package Main;


import GUI.GraphicalController;
import java.util.logging.*;

/**
 *
 * @author citromos ezüstróka
 */
public class Main {

    private static final Logger logger =
            Logger.getLogger(Main.class.getName());
    private static FileHandler fh;
    
    private static GraphicalController gControl;

    public static void main(String... args) {
        // Set the logging
        setLogger();
        logger.finest("Logger created.");

       
            
       
            gControl = new GraphicalController();
        
    }

    static void setLogger() {
        try {
            fh = new FileHandler("digIT.log.txt");
        } catch (java.io.IOException e) {
            System.err.println("Can't open file for logging:");
            System.err.println(e.getMessage());
        }
        fh.setFormatter(new LogFormatter());
        Logger.getLogger("").addHandler(fh);
        Logger.getLogger("").setLevel(Level.CONFIG);

    }
}
